#ifndef STX_ALGORITHM_ROTATE_COPY_HPP
#define STX_ALGORITHM_ROTATE_COPY_HPP

#include <stx/algorithm/common.hpp>
#include <stx/algorithm/copy.hpp>

namespace stx {

template <class ForwardIterator, class OutputIterator>
inline OutputIterator
rotate_copy(ForwardIterator first, ForwardIterator middle, ForwardIterator last, OutputIterator result)
{
    return stx::copy(first, middle, stx::copy(middle, last, result));
}

} // namespace stx

#endif // STX_ALGORITHM_ROTATE_COPY_HPP
